# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asio
pkgver=1.22.1
pkgrel=2
pkgdesc="Cross-platform C++ library for network programming"
url="https://think-async.com/Asio/"
arch="all"
license="BSL-1.0"
depends_dev="boost-dev openssl1.1-compat-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/sourceforge/asio/asio-$pkgver.tar.bz2
	skip-cpp20.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
be4a066d9f73662f68a771f63a59fc2e16e8ee1ae1ca6c581e09922514029e58c479edfc0517ee6b29a1fd377d202a2a6eb80d9d17f6e957233c11331f04a479  asio-1.22.1.tar.bz2
869049599ca3e093340280618ac1412380538d5290171511a8c93bee6c64650a225c763d3a79dead556bb699f69a0b54b182da9f43bd6d81823013936e9697e3  skip-cpp20.patch
"
